package axis2Consumer.ws;

import java.util.logging.Level;
import java.util.logging.Logger;

import ua.ad.consumer.FeedsManager;
import ua.ad.consumer.SchedulerManager;

/**
 * 
 * @author ricardo
 *
 */
public class ConsumerWs {
	
	private static final Logger LOGGER = Logger.getLogger(SchedulerManager.class.getName());
	
	//sayHello
	public Integer loadFeed(Integer id) {
		if (id == null) {
			return null;
		}
		
		LOGGER.log(Level.INFO, "WebService ConsumerWs.loadFeed: id=" + id );
		FeedsManager fm = new FeedsManager();
		Integer idItem = fm.loadFeed( id );
		fm.commitAndCloseConnection();
		
		return idItem;
	}
}